using MainServer;
using Entity;
using Component;
using Group;
using Map;

namespace Context
{
    class ContextInfo
    {
        string Name { get; set; } = string.Empty;
        int ComponentAmount { get; set; }
        int EntityAmount { get; set; }
        public ContextInfo(string name)
        {
            Name = name;
            ComponentAmount = 0;
            EntityAmount = 0;
        }
    }
    class Context
    {
        public readonly List<IEntity> entities = [];
        public readonly List<IGroup> groups = [];
        public readonly ContextInfo contextInfo;
        private Stack<IComponent>[] componentPool = [];
        public Context(string name)
        {
            contextInfo = new ContextInfo(name);
        }
    }
}